Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

#464 Improve error message when program is missing arm of branching statement #645

Conversation

imaqtkatt
Copy link
Contributor

No description provided.

@imaqtkatt imaqtkatt requested a review from developedby July 24, 2024 20:19
@imaqtkatt imaqtkatt self-assigned this Jul 24, 2024
src/lib.rs Show resolved Hide resolved
src/lib.rs Outdated
@@ -197,6 +198,7 @@ pub fn readback_hvm_net(
let mut diags = Diagnostics::default();
let net = hvm_to_net(net);
let mut term = net_to_term(&net, book, labels, linear, &mut diags);
#[allow(clippy::mutable_key_type)]
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Did this start to flag after a clippy update?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think so, with rust 1.80

src/imp/parser.rs Outdated Show resolved Hide resolved
@imaqtkatt imaqtkatt requested a review from developedby July 25, 2024 20:08
@@ -14,6 +14,7 @@ use diagnostics::{Diagnostics, DiagnosticsConfig, ERR_INDENT_SIZE};
use net::hvm_to_net::hvm_to_net;

pub mod diagnostics;
#[allow(clippy::mutable_key_type)]
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Add a comment explaining why this is necessary.
Eg. "Name is implemented with inner mutability so it triggers this warning, but we know it works."

@imaqtkatt imaqtkatt added this pull request to the merge queue Jul 25, 2024
Merged via the queue into main with commit 67640d5 Jul 25, 2024
5 checks passed
@imaqtkatt imaqtkatt deleted the 464-improve-error-message-when-program-is-missing-arm-of-branching-statement branch July 25, 2024 20:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Improve error message when program is missing arm of branching statement
2 participants